﻿using System;
using System.Web;
using ChapterX.BusinessFacade;

namespace ChapterX.Auth
{
    public partial class Default : ChapterX.Model.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CurrentUserInfo.IsLibrarian)
            {
                Response.Redirect("Librarian/Default.aspx");
            }
            else if (CurrentUserInfo.IsTeacher)
            {
                Response.Redirect("Teacher/Default.aspx");
            }
            else if (CurrentUserInfo.IsStudent)
            {
                Response.Redirect("Student/Default.aspx");
            }
        }
    }
}
